package com.dingwen.treasure.manage.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
 * 　LoginProperties: 登录配置
 * 　@author dingwen
 * 　@since  2022/6/12
 *
 */
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "treasure.login")
@RefreshScope
@Getter
@Setter
public class LoginProperties {
    /**
     * 最大重试次数： 默认值 5
     */
    private Integer  maxRetries = 5;

    /**
     * 账户锁定时间
     */
    private Long lockTime = 5L;

    /**
     * key
     */
    private final String KEY_PREFIX = "ACCOUNT:LOGIN:";
}
